package com.mc.code.service.Impl;

import com.mc.code.entity.CodeUsers;
import com.mc.code.mapper.LoginMapper;
import com.mc.code.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoginImpl implements LoginService {
    @Autowired
    private LoginMapper loginMapper;

    @Override
    public List<CodeUsers> login(String username) {
      List<CodeUsers> codeUsers = loginMapper.login(username);
        return codeUsers;
    }

    @Override
    public int maxUserNo() {
       int id = loginMapper.maxId();
        return loginMapper.maxUserNo(id);
    }

    @Override
    public void registerUser(CodeUsers codeUsers) {
    loginMapper.registerUser(codeUsers);
    }

    @Override
    public int skillNet() {
        return loginMapper.skillNet();
    }

    @Override
    public int skillJava() {
        return loginMapper.skillJava();
    }

    @Override
    public int skillPhp() {
        return loginMapper.skillPhp();
    }

    @Override
    public int skillAsp() {
        return loginMapper.skillAsp();
    }

    @Override
    public int skillC() {
        return loginMapper.skillC();
    }

    @Override
    public int skillBigdata() {
        return loginMapper.skillBigdata();
    }

//    类型数
    @Override
    public int countWeb() {
        return loginMapper.countWeb();
    }

    @Override
    public int countApp() {
        return loginMapper.countApp();
    }

    @Override
    public int countWx() {
        return loginMapper.countWx();
    }

    @Override
    public int countRoutine() {
        return loginMapper.countRoutine();
    }

    @Override
    public int countHtml() {
        return loginMapper.countHtml();
    }

    @Override
    public int countOther() {
        return loginMapper.countOther();
    }

    @Override
    public String registerUserName(String username) {
        return loginMapper.registerUserName(username) ;
    }

}
